const baseUrl="http://172.16.114.183:8888"	
const header={
	token:uni.getStorageSync("token")
}
const request=(url="",method="POST",data={})=>{
	return new Promise((resolve,reject)=>{
		  uni.request({
		  	 url:baseUrl+url,
		  	 header:header,
		  	 data:data,
		  	 method:method,
		  	 success:(res)=>{
		  	    resolve(res)
		  	 },
		  	 fail:(err)=>{
		  	  reject(err)
		  	 }
		  })
	})
}
export default request